Skip to content

Conversation

@JDevlieghere
Copy link
Member

Restore the original behavior (i.e. before #167764), which uses eOpenOptionWriteOnly, not eOpenOptionReadWrite. Fixes TestLuaAPI.py.

Restore the original behavior (i.e. before llvm#167764), which uses
eOpenOptionWriteOnly, not eOpenOptionReadWrite. Fixes TestLuaAPI.py.
@JDevlieghere JDevlieghere enabled auto-merge (squash) November 21, 2025 22:01
@llvmbot llvmbot added the lldb label Nov 21, 2025
@llvmbot
Copy link
Member

llvmbot commented Nov 21, 2025

@llvm/pr-subscribers-lldb

Author: Jonas Devlieghere (JDevlieghere)

Changes

Restore the original behavior (i.e. before #167764), which uses eOpenOptionWriteOnly, not eOpenOptionReadWrite. Fixes TestLuaAPI.py.


Full diff: https://github.com/llvm/llvm-project/pull/169103.diff

1 Files Affected:

  • (modified) lldb/bindings/lua/lua-typemaps.swig (+1-1)
diff --git a/lldb/bindings/lua/lua-typemaps.swig b/lldb/bindings/lua/lua-typemaps.swig
index a4a77b1a214c9..51a92473c009a 100644
--- a/lldb/bindings/lua/lua-typemaps.swig
+++ b/lldb/bindings/lua/lua-typemaps.swig
@@ -252,7 +252,7 @@ LLDB_NUMBER_TYPEMAP(enum SWIGTYPE);
   luaL_Stream *p = (luaL_Stream *)luaL_checkudata(L, $input, LUA_FILEHANDLE);
   lldb::FileSP file_sp;
   file_sp = std::make_shared<lldb_private::NativeFile>(
-      p->f, lldb_private::NativeFile::eOpenOptionReadWrite, false);
+      p->f, lldb_private::NativeFile::eOpenOptionWriteOnly, false);
   if (!file_sp->IsValid())
     return luaL_error(L, "Invalid file");
   $1 = file_sp;

@JDevlieghere JDevlieghere merged commit 6ed829b into llvm:main Nov 21, 2025
10 of 11 checks passed
@github-actions
Copy link

🐧 Linux x64 Test Results

  • 33166 tests passed
  • 491 tests skipped

@JDevlieghere JDevlieghere deleted the lua-typemaps branch November 21, 2025 22:21
aadeshps-mcw pushed a commit to aadeshps-mcw/llvm-project that referenced this pull request Nov 26, 2025
Restore the original behavior (i.e. before llvm#167764), which uses
eOpenOptionWriteOnly, not eOpenOptionReadWrite. Fixes TestLuaAPI.py.
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Nov 26, 2025
Restore the original behavior (i.e. before llvm#167764), which uses
eOpenOptionWriteOnly, not eOpenOptionReadWrite. Fixes TestLuaAPI.py.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants